package com.tree.dubbo.service;

import com.tree.dubbo.api.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName com.tree.dubbo.service
 * Description: <类功能描述>. <br>
 * <p>
 * <使用说明>
 * </p>
 * @Author tree
 * @Date 2019-08-25 18:17
 * @Version 1.0
 */
@Service("consumerDemoService")
public class ConsumerDemoService {

    @Autowired
    private DemoService demoService;

    public void sayHello(String name) {
        // 执行消费远程方法
        String hello = demoService.sayHello(name);
        System.out.println(hello);
    }


}
